package com.ffmpeg.util.domain.entity;

import java.math.BigDecimal;

/**
 * @author : wm
 * @description : 文件信息
 */
public class FileInfo {
    /**
     * 文件名称
     */
    private String fileName;
    /**
     * 文件类型
     */
    private String fileType;
    /**
     * 文件目录
     */
    private String dirPath;
    /**
     * 文件大小，单位为byte
     */
    private BigDecimal size;
    /**
     * 时长,单位为ms
     */
    private Long time;

    public String getFileName() {
        return fileName;
    }

    public FileInfo setFileName(String fileName) {
        this.fileName = fileName;
        return this;
    }

    public String getFileType() {
        return fileType;
    }

    public FileInfo setFileType(String fileType) {
        this.fileType = fileType;
        return this;
    }

    public String getDirPath() {
        return dirPath;
    }

    public FileInfo setDirPath(String dirPath) {
        this.dirPath = dirPath;
        return this;
    }

    public BigDecimal getSize() {
        return size;
    }

    public FileInfo setSize(BigDecimal size) {
        this.size = size;
        return this;
    }

    public Long getTime() {
        return time;
    }

    public FileInfo setTime(Long time) {
        this.time = time;
        return this;
    }
}
